package com.itheima.service;


import com.alibaba.dubbo.config.annotation.Service;


import com.itheima.exception.BusinessRuntimeException;
import com.itheima.sercive.UserService;
import lombok.extern.slf4j.Slf4j;


@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Override
    public boolean login(String username, String password) {
        log.debug("账号!!!!:"+username+" 密码!!!!"+password);
        if ("admin".equals(username) && "123".equals(password)) {
            return true;
        } else {
            throw new BusinessRuntimeException("登陆失败!");
        }

        //return false;
    }
}
